from flask_wtf import FlaskForm
from wtforms import StringField, SubmitField, FileField


class EditForm(FlaskForm):
    create_datetime = StringField('创建时间', render_kw={'readonly': True})
    update_datetime = StringField('更新时间', render_kw={'readonly': True})
    flag = StringField('唯一标识', render_kw={'readonly': True})
    src = StringField('图片地址', render_kw={'readonly': True})
    title = StringField('图片标题')
    file = FileField('替换图片')
    save = SubmitField('确认替换')
